package com.scoressystem.mapper;

import com.scoressystem.pojo.Subjects;

import java.util.List;
import java.util.Map;

public interface SubjectsMapper {

    List<Subjects> selectAllSubjectsByPage(Map<String, Object> map);

    long selectAllSubjectsCount(Map<String, Object> map);

    int addSubject(Subjects Subject);

    int deleteSubjectById(Integer id);

    int updateSubject(Subjects Subject);

    Subjects getSubjectsByName(String name);

    Subjects getSubjectById(Integer id);

    List<Subjects> getAllSubjects();
}
